home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / scrnmdcl.lha / ScreenModeClass10 / Include / ScreenModeClass.h
C/C++ Source or Header  |  1995-09-17  |  3KB  |  106 lines

  1. /*
  2. **
  3. ** $VER: ScreenModeClass.lib  1.0 (17.9.95) Doguet Emmanuel
  4. **
  5. **
  6. ** C Header for the ScreenMode Class.
  7. **
  8. ** Allow to manage/set the Asl-Screenmode requester
  9. ** for Intuition, BGUI..
  10. **
  11. **
  12. **          (C) Copyright 1995 Doguet Emmanuel
  13. **          All  Rights Reserved.
  14. **
  15. **/
  16.  
  17. #ifndef SCREENMODECLASS_H
  18. #define SCREENMODECLASS_H
  19.  
  20. #include <exec/types.h>
  21. #include <exec/memory.h>
  22.  
  23. #ifndef INTUITION_CLASSES_H
  24. #include <intuition/classes.h>
  25. #endif
  26.  
  27. #ifndef INTUITION_GADGETCLASS_H
  28. #include <intuition/gadgetclass.h>
  29. #endif
  30.  
  31. #ifndef LIBRARIES_ASL_H
  32. #include <libraries/asl.h>
  33. #endif
  34.  
  35. #ifndef UTILITY_TAGITEM_H
  36. #include <libraries/utility.h>
  37. #endif
  38.  
  39. /*
  40. **      Methods
  41. **/
  42. #define SMC_MB                      (0x3000)
  43.  
  44. #define SMC_DOREQUEST               (SMC_MB+1)
  45.  
  46.  
  47.  
  48. /*
  49. **      Tags
  50. **/
  51. #define SMC_TB                      (TAG_USER+0x30000)
  52.  
  53.  
  54. #define SMC_InitialInfoPos          (SMC_TB+1)                  /* I---- */
  55.     /* SMC_INFOPOS_TopLeft, SMC_INFOPOS_TopRight */
  56.  
  57. #define SMC_InfoPosArround          (SMC_TB+2)                  /* I---- */
  58.  
  59. #define SMC_DisplayID               (SMC_TB+3)                  /* --G-- */
  60. #define SMC_DisplayWidth            (SMC_TB+4)                  /* --G-- */
  61. #define SMC_DisplayHeight           (SMC_TB+5)                  /* --G-- */
  62. #define SMC_DisplayDepth            (SMC_TB+6)                  /* --G-- */
  63. #define SMC_OverscanType            (SMC_TB+7)                  /* --G-- */
  64. #define SMC_AutoScroll              (SMC_TB+8)                  /* --G-- */
  65.  
  66. #define SMC_ReqLeftEdge             (SMC_TB+9)                  /* --G-- */
  67. #define SMC_ReqTopEdge              (SMC_TB+10)                  /* --G-- */
  68. #define SMC_ReqWidth                (SMC_TB+11)                 /* --G-- */
  69. #define SMC_ReqHeight               (SMC_TB+12)                 /* --G-- */
  70.  
  71. #define SMC_InfoLeftEdge            (SMC_TB+13)                 /* --G-- */
  72. #define SMC_InfoTopEdge             (SMC_TB+14)                 /* --G-- */
  73. #define SMC_InfoWidth               (SMC_TB+15)                 /* --G-- */
  74. #define SMC_InfoHeight              (SMC_TB+16)                 /* --G-- */
  75.  
  76. #define SMC_GUI_MODES               (SMC_TB+17)                 /* IS--- */
  77. #define SMC_ControlMinSize          (SMC_TB+18)                 /* IS--- */
  78.  
  79.  
  80. /* Value for SCRM_InitialInfoPos tag */
  81. /* Position relative from ScreenMode Requester */
  82. #define SMC_INFOPOS_TopLeft             (1)
  83. #define SMC_INFOPOS_TopRight            (2)
  84.  
  85.  
  86. /*
  87. **      Possible errors
  88. **/
  89. #define SMCERR_OUT_OF_MEMORY            (1L)
  90.  
  91.  
  92. /*
  93. **      Macros
  94. **/
  95. #define ScreenModeReq( Obj )      DoMethod( Obj, SMC_DOREQUEST )
  96.  
  97.  
  98. /*
  99. **      Class routine protos
  100. **/
  101. extern Class *InitScreenModeClass( void );
  102. extern BOOL FreeScreenModeClass( Class *cl );
  103.  
  104. #endif
  105.  
  106.